﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Entity;
using BLL;

namespace web.admin.InnerCon
{
    public partial class InnerBuget : System.Web.UI.Page
    {
        private MoneyService moneyService = new MoneyService();
        private ContestService contestService = new ContestService();
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                string id = Request["id"];
                if (String.IsNullOrEmpty(id))
                    return;

                btn_Add.NavigateUrl = "AddInnerBuget.aspx?ContestId=" + id;

                BoContests contest = new BoContests();
                contest.CON_ID = id;
                RpList.DataSource = moneyService.GetContestMoney(contest, BoMoney.MONEYTYPE_INNER);
                RpList.DataBind();
            }
        }

        
    }
}